{extend name="ashippingmanagement/Public/base" /}
{block name="container"}
<script src="__STATIC__/layout/js/plugins/laydate/laydate.js"></script>
<!-- 标题 -->
<div class="page-heade">
    <h2 class="title_color text-center">导购员工资--数据导入日志</h2>
</div>
<!-- 标题 -->
<form action="" class="form-inline" method="post">
    <table class="table table-bordered" style="margin: 0">
        <tr>
            <td>月份
                <input type="text" class="form-control layer-date" name="ny" id="month" style="min-width: 120px;width: 120px;" value="<?php if(isset($where['ny'])) echo $where['ny']; ?>">
                <span class="lr_5"></span> <button class="btn btn-info" type="submit">查询</button>
            </td>
        </tr>
    </table>
    <table class="table table-bordered text-center table-hover">
        <tr class="info">
            <th class="text-center">No.</th>
            <th class="text-center">操作人</th>
            <th class="text-center">操作记录</th>
            <th class="text-center">导入文件(可下载)</th>
            <th class="text-center">导入时间</th>
        </tr>
        {volist name="data" id="list"}
        <tr>
            <td>{$i}</td>
            <td>{$list.operator}</td>
            <td>{$list.log}</td>
            <td><a href="{:url('Ashippingmanagement/downFile')}?path=/uploads/bx_guide/{$list.file}">{$list.file}</a></td>
            <td>{$list.date}</td>
        </tr>
        {/volist}
    </table>
    <h5 class="text-center">
        总共有{$count}条记录，第{$page}/{$maxpage}页，当前页：<input id="page" type="text" name="pages" style="width: 70px;" value="" class="form-control" /><button type="submit" style="height: 23px;" id="gopage">GO</button>&nbsp;&nbsp;<button type="submit" onclick="$('#form_id').find('select').val('');$('#form_id').find('input').val('');" style="height: 23px;" id="fistpage">首页</button>&nbsp;&nbsp; 每页显示
        <select id="pagesize" name="limts" style="width: 70px" class="form-control">
            <option value='1'>1</option>
            <option value='5'>5</option>
            <option value='10'>10</option>
        </select>条
        <script>
            $('#pagesize').val("{$limit}");
        </script>
    </h5>
</form>
<script>
    laydate.render({
        elem: '#month',
        type: 'month',
        theme: '#009688',
        trigger:"click"
    });
</script>
{/block}